import request from '@/utils/request'

// 查询农产品品类列表
export function listCategory1(query) {
  return request({
    url: '/category1/category1/list',
    method: 'get',
    params: query
  })
}

// 查询农产品品类详细
export function getCategory1(categoryId) {
  return request({
    url: '/category1/category1/' + categoryId,
    method: 'get'
  })
}

// 新增农产品品类
export function addCategory1(data) {
  return request({
    url: '/category1/category1',
    method: 'post',
    data: data
  })
}

// 修改农产品品类
export function updateCategory1(data) {
  return request({
    url: '/category1/category1',
    method: 'put',
    data: data
  })
}

// 删除农产品品类
export function delCategory1(categoryId) {
  return request({
    url: '/category1/category1/' + categoryId,
    method: 'delete'
  })
}
